#include <bits/stdc++.h>
using namespace std;
int main()
{
    int h, m;
    scanf("%d:%d", &h, &m);
    if (h < 12 || h == 12 && m == 0)
    {
        printf("Only %02d:%02d.  Too early to Dang.\n", h, m);
    }
    else
    {
        h -= 12;
        if (m > 0)
            h++;
        for (int i = 1; i <= h; i++)
        {
            cout << "Dang";
        }
        cout << endl;
    }
    return 0;
}